const joi = require('@hapi/joi')

//定义用户名密码验证规则
const username = joi.string().alphanum().min(3).max(10).required()
const password = joi.string().pattern(/^[\S]{6,12}$/).required()
const repassword = joi.ref('password')
//定义登陆注册表单数据规则对象
exports.reg_log_schema={
    body:{
        username,
        password,
        repassword
    }
}